
public class PhoneDriver {

	public static void main(String[] args) {
		Phone myPhone = new Phone("Fred", "555-1212");
		
		myPhone.talk(10);
		myPhone.talk(30);
		
		System.out.println("Fred Talked for " + myPhone.getTalkTime());
		
		CellPhone barneyCell = new CellPhone("Barney", "555-1000", 200);

		barneyCell.talk(20);
		System.out.println("Barney Talked for " + barneyCell.getTalkTime());
		
		Phone barneyWallPhone = new Phone("Barney", "555-6666");
		
		System.out.println(myPhone);
		System.out.println(barneyCell.toString());
		
	}

}
